export const Props = {
  template: `
    <el-card header="Props" ref="container" class="el-card__header-no-border">
      <el-table :data="crudData" style="width: 100%">
        <el-table-column prop="name" label="参数" width="100" />
        <el-table-column prop="description" label="描述" />
        <el-table-column prop="type" label="类型" width="100" />
        <el-table-column prop="default" label="默认值" />
      </el-table>
    </el-card>
  `,

  data() {
    return {
      crudData: [
        {
          name: 'items',
          description: '表单项，配置如下',
          type: 'array',
        },
        {
          name: 'attrs',
          description: '绑定给el-form的属性',
          type: 'object',
          default: `{ labelWidth: '100px', labelPosition: 'left', validateOnRuleChange: false }`
        },
      ],
    }
  }
}